export function testUtil() {
  document.write('测试自定义包')
  console.log('testUtil()')
}

// 引入其他文件，然后再暴露
// 1. 目标文件中暴露数据 export 数据
// 2. 暴露数据

// 数组相关
export { chunk } from "./array/chunk"
export { concat, slice } from "./array/concat"
export { map, reduce, filter, find, findIndex, every, some} from "./array/declares"
export { difference } from "./array/difference"
export { drop, dropRight} from "./array/drop"
export { flatten1, flatten2} from "./array/flatten"
export { pull, pullAll} from "./array/pull"
export { unique, unique2, unique3 } from "./array/unique"

// 手写ajax请求函数
export { axios } from "./axios/index"

// DOM事件监听
export { addEventListener } from "./event-bind/index"

// 手写事件总线
export { eventBus } from "./event-bus/index"

// 函数相关
export { apply } from "./function/apply"
export { bind } from "./function/bind"
export { call } from "./function/call"
export { debounce } from "./function/debounce"
export { throttle } from "./function/throttle"

// 对象相关
export { clone1, clone2, deepClone1, deepClone2, deepClone3, deepClone4 } from "./object/clone"
export { mergeObject} from "./object/mergeObject"
export { myInstanceOf} from "./object/myInstanceOf"
export { newInstance } from "./object/newInstance"

// 消息订阅发布
export { PubSub } from "./pub-sub/index"

// 字符串相关
export { reverseString,palindrome,truncate} from "./string/index"






